package shop.order.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import shop.common.entity.Order;
import shop.common.entity.OrderItem;

import java.util.List;

public interface OrderService extends IService<Order> {


    Page<Order> list(Order order, Integer pageNum, Integer pageSize);

    Order details(String id);

    boolean createOrder(String userId, String address, List<OrderItem> orderItemList);

    List<Order> listByUserId(String userId);
}
